//
//  WmcMediaPhotoModel.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/6/10.
//

import Foundation
import YPNetwork

class WmcMediaPhotoModel: YPNetworkJsonProtocol,WmcPhotoModelProtocol {
    enum LoadStatus {
        case notLoaded
        case loading
        case loadsuccess
        case loadFailure
    }
    
    required init() {
        
    }
    
    /// 相册资源id
    var id: Int = 0
    
    /// 资源id
    var resourceId: String = ""
    
    /// 资源地址
    var url: String = ""
    
    /// 资源类型，0:图片，1:视频
    var resourceType: Int = 0
    
    /// 水印类型id
    var wmId: Int = 0
    
    /// 城市
    var city: String = ""
    
    /// 地址
    var address: String = ""
    
    /// 2022-06-01 11:58:53
    var createdAt: String = ""
    
    /// 2022-06-01 11:58:53
    var takeTime: String = ""
    
    /// 年月日
    var takeTimeDateStr: String = ""
    
    /// 小时分钟
    var takeTimeStr: String = ""
    
    /// 加载状态
    var loadStatus: LoadStatus = .notLoaded
    
    var lat: Double = 0.0
    
    var lon: Double = 0.0
}

class WmcMediaPhotoDayModel {
    /// 日期
    var date: String = ""
    
    /// 地址列表
    var placeList: [WmcMediaPhotoPlaceModel] = []
    
    /// 数量
    var count: Int = 0
    
    /// 显示高度
    var height: CGFloat = 0.0
}

class WmcMediaPhotoPlaceModel {
    /// 照片列表
    var photoList: [WmcMediaPhotoModel] = []
    
    /// 地址
    var address: String = ""
    
    /// 经度
    var longitude: Double = 0.0
    
    /// 纬度
    var latitude: Double = 0.0
}

class WmcMediaPhotoGroupModel {
    /// 日期
    var date: String = ""
    
    /// 照片
    var list: [WmcMediaPhotoModel] = []
    
    /// 地点
    var address: String = ""
    
    /// 经度
    var longitude: Double = 0.0
    
    /// 纬度
    var latitude: Double = 0.0
    
    /// 是否需要显示日期
    var isShowDate: Bool = false
}


/// 新增一个 团队相册  group model 类型，为了不改变原有 代码

class WmcTeamMediaPhotoGroupModel {
    
    /// 日期
    var date: String = ""
    
    /// 照片
    var list: [WmcMediaClassifyAlbumMemberModel] = []
    
    /// 地点
    var address: String = ""
    
    /// 经度
    var longitude: Double = 0.0
    
    /// 纬度
    var latitude: Double = 0.0
    
    /// 是否需要显示日期
    var isShowDate: Bool = false
    
}
